<?php
    
    class EventBusiness {
    	
		public function select($event) {
			
			$dataBaseConnection = DataAccessFactory::factory('DataAccessMySQL');
			
			$dataBaseConnection->connect();
			
			$eventDataAccess = DataAccessFactory::factory('EventDataAccessMySQL');

			$result = $eventDataAccess->select($event, $dataBaseConnection);
			
			$dataBaseConnection->disconnect();
			
			return $result;
		}
    }
?>